package com.teacher.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.classteacher.ClassTeacherAddDto;
import com.teacher.pojo.dto.classteacher.ClassTeacherGetDto;
import com.teacher.pojo.dto.classteacher.ClassTeacherUpdateDto;
import com.teacher.pojo.entity.ClassTeacher;
import com.teacher.pojo.vo.classteacher.ClassTeacherGetVo;
import com.teacher.pojo.vo.classteacher.ClassTeacherListVo;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zfm
 * @since 2021-07-18
 */
public interface IClassTeacherService extends IService<ClassTeacher> {

    /**
     * 添加班主任
     *
     * @param dto
     * @return
     */
    CommonResult<String> add(ClassTeacherAddDto dto);

    /**
     * 查询班主任班级关联信息
     *
     * @param dto
     * @return
     */
    CommonResult<IPage<ClassTeacherGetVo>> get(ClassTeacherGetDto dto);

    /**
     * 更新班主任班级关联信息
     *
     * @param dto
     * @return
     */
    CommonResult<String> put(ClassTeacherUpdateDto dto);

    /**
     * 班主任查询班级
     *
     * @return
     */
    CommonResult<List<ClassTeacherListVo>> getClassTeacherList();


}
